package com.sskj.wallet.bean;

import android.text.TextUtils;

import com.sskj.lib.util.EncodeUtils;

public class CreateBean {

    /**
     * btc : {"pri":"L14maEDi5EUoZEpLfbCHeSgcTE2gBPxy29oPbfSpw7Ye5GTRHX5z","addr":"18Vci3WizD4p62bet8rxkbMnfpCX52ar8j"}
     * eth : {"pri":"abf82ff96b463e9d82b83cb9bb450fe87e6166d4db6d7021d0c71d7e960d5abe","addr":"0x959FD7Ef9089B7142B6B908Dc3A8af7Aa8ff0FA1"}
     */

    private CreateCoinBean btc;
    private CreateCoinBean eth;

    public CreateCoinBean getBtc() {
        return btc;
    }

    public void setBtc(CreateCoinBean btc) {
        this.btc = btc;
    }

    public CreateCoinBean getEth() {
        return eth;
    }

    public void setEth(CreateCoinBean eth) {
        this.eth = eth;
    }

    public static class CreateCoinBean {
        /**
         * pri : L14maEDi5EUoZEpLfbCHeSgcTE2gBPxy29oPbfSpw7Ye5GTRHX5z
         * addr : 18Vci3WizD4p62bet8rxkbMnfpCX52ar8j
         */

        private String pri;
        private String addr;
        private String mnemonic;
        private String ksJson;
        private String path;

        public String getMnemonic() {
            if (TextUtils.isEmpty(mnemonic)){
                return mnemonic;
            }
            return EncodeUtils.decryptAES(mnemonic);
        }

        public void setMnemonic(String mnemonic) {
            this.mnemonic = mnemonic;
        }

        public String getKsJson() {
            if (TextUtils.isEmpty(ksJson)){
                return ksJson;
            }
            return EncodeUtils.decryptAES(ksJson);
        }

        public void setKsJson(String ksJson) {
            this.ksJson = ksJson;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getPri() {
            return pri;
        }

        public void setPri(String pri) {
            this.pri = pri;
        }

        public String getAddr() {
            return addr;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }
    }

}
